home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-069 qemm 603 / 1.ima / QEMM-MAN / CH7.QEM < prev    next >
Encoding:
Text File  |  1991-10-07  |  6.6 KB  |  165 lines

  1. Chapter 7 
  2.  
  3. The VIDRAM Program
  4.  
  5. The VIDRAM.COM program extends the conventional memory managed by
  6. DOS by as much as 96K if your system has an EGA or VGA video
  7. adapter card. Your PC must also already have a full 640K of
  8. conventional memory and the program or programs you intend to
  9. execute with this additional memory must not use graphics. In
  10. other words, VIDRAM can be of use to you if you make use of large
  11. text based programs, such as dBASE IV, that will be more
  12. responsive with the additional memory.
  13.  
  14. VIDRAM is a stand-alone TSR. It does not require any expanded
  15. memory, extended memory or a memory manager (other than itself
  16. and DOS). If your system has the necessary video RAM, VIDRAM will
  17. work equally well on 8088, 8086, 80286 and 80386 machines. If you
  18. do have expanded memory and a memory manager and are mapping the
  19. video RAM area, VIDRAM has several related options that might be
  20. useful to you.
  21.  
  22. VIDRAM steals the video memory from the adapter RAM that is used
  23. for graphic pages. This memory is available on EGA and VGA
  24. adapters, (not on CGA or monochrome adapters) and lies just
  25. beyond the 640K address boundary. VIDRAM makes this memory
  26. available to DOS. DOS in turn will make the memory available to
  27. every program it loads. VIDRAM also intercepts video requests and
  28. refuses all requests that would make use of this memory, i.e.
  29. graphics operations.
  30.  
  31. The amount of additional DOS memory VIDRAM will make available
  32. depends on several factors. The maximum is 96K with a color
  33. monitor and EGA/VGA adapter. If you have a monochrome monitor or
  34. are using dual monitors you can still gain 64K memory for your
  35. programs.
  36.  
  37. ~Subhead~ Using VIDRAM
  38.  
  39. If you routinely use both large text based programs and graphics
  40. programs, you can turn the VIDRAM feature off and on as needed
  41. after you exit one program and before you execute the other.
  42. (NOTE: VIDRAM cannot be turned on and off inside DESQview).
  43.  
  44. If you seldom use graphics programs you can make the best use of
  45. VIDRAM if you simply load it into memory and turn it ON every
  46. time you power up your machine. To do this you need to create or
  47. modify your AUTOEXEC.BAT file, adding the statement: 
  48.  
  49.  
  50.      VIDRAM ON
  51.  
  52. This brings VIDRAM into memory and makes the additional memory
  53. available to all of the applications you may run throughout the
  54. day.
  55.  
  56.  The ON parameter on the command line is an option. VIDRAM has
  57. several options which it will recognize, including the options
  58. which all the programs in this package support. In the next
  59. section, when an option is first mentioned, the alternate
  60. abbreviated form of the option immediately follows it and is
  61. enclosed in parentheses.
  62.  
  63. You will need to understand what these options do if:
  64.  
  65. ~Item~ you want to know the status of VIDRAM
  66.  
  67. ~Item~ you need to run graphics programs occasionally
  68.  
  69. ~Item~ you have a second video adapter and monitor
  70.  
  71. ~Item~ you also have expanded or extended memory and a memory     
  72.                            manager that is capable of mapping
  73. memory into the video RAM memory area
  74.  
  75. In using VIDRAM, you may from time to time need to determine what
  76. state VIDRAM is in. To determine the current status of VIDRAM,
  77. just enter the VIDRAM command (no option) from the DOS prompt:
  78.  
  79. ~Step~ TYPE VIDRAM and press <Enter>.
  80.  
  81. The VIDRAM program reports whether or not VIDRAM is resident and
  82. enabled. If it is enabled it will report the type of memory in
  83. use and the new DOS ending address.
  84.  
  85. ~Subhead~ VIDRAM Options
  86.  
  87.  Here are the options to the VIDRAM command:
  88.  
  89. ~Item~ NOCGA, prevents all graphic functions (CGA through VGA)
  90. from using the video RAM graphic areas. This option makes VIDRAM
  91. resident but does not extend DOS memory. See also NOEGA.
  92.  
  93. ~Item~ NOEGA, prevents EGA and VGA graphic requests from being
  94. honored. This option makes VIDRAM resident but does not extend
  95. DOS memory. This option may be used when some of your video RAM
  96. area has been mapped with EMS memory by something other than
  97. VIDRAM and you want to protect it from being used by programs
  98. using the graphics capabilities.
  99.  
  100. ~Item~ RESIDENT, (RES), installs VIDRAM in memory but does not
  101. enable any VIDRAM functions. See next section (Using VIDRAM with
  102. LOADHI).
  103.  
  104. ~Item~ OFF, (OF), turns VIDRAM off, restoring memory to the
  105. graphics adapter and enabling graphics capability.
  106.  
  107. ~Item~ ON, turns VIDRAM on to extend DOS memory and to remain
  108. resident to inhibit graphic operations.
  109.  
  110.  The ON option can be modified by three additional parameters:
  111.  
  112.      OVERRIDE (OV or OR),     EGA  or   EMS.
  113.  
  114.  The OVERRIDE modifier forces VIDRAM on in situations where it
  115. would normally refuse to appropriate video RAM. These situations
  116. occur when you have two monitors and two video adapters in your
  117. system, or when all or part of the video RAM is already being
  118. managed by a resident memory manager. OVERRIDE may not work well
  119. in either of these situations, depending upon what adapters are
  120. involved or what memory management features you may already be
  121. using. You will simply have to determine for yourself VIDRAM's
  122. utility in this situation.
  123.  
  124.  The EGA modifier instructs VIDRAM to use video RAM memory
  125. instead of EMS memory when the video RAM area is mappable. This
  126. is the default when video RAM is not mappable.
  127.  
  128.  The EMS modifier instructs VIDRAM to use EMS memory to extend
  129. DOS. This is the default if you have mapped memory into the video
  130. RAM area. You should not need to add this modifier.
  131.  
  132.  To use these modifiers, add the modifier to the VIDRAM ON
  133. command. To use the OVERRIDE option, for example, you would enter
  134. the following command from the DOS prompt:
  135.  
  136.  Type VIDRAM ON OVERRIDE and press <Enter>.
  137.  
  138.  The VIDRAM program will respond with a display that will show
  139. memory has been extended and that graphics are now disabled.
  140.  
  141. NOTE: When using VIDRAM with EMS memory mapped in the video area
  142. by Quarterdeck's memory management driver you should use one of,
  143. the VIDRAM specific options the driver provides. For reference,
  144. these options are:
  145.  
  146.  VIDRAMEMSVIDRAMEGA
  147.  
  148. ~Subhead~ Using VIDRAM with LOADHI
  149.  
  150. You can use the LOADHI program with VIDRAM to make the resident
  151. portion of VIDRAM remain in high RAM. VIDRAM run in high RAM
  152. cannot, however, extend the memory. To extend the memory, you
  153. must run VIDRAM a second time. For example:
  154.  
  155. ~Step~ TYPE LOADHI VIDRAM RESIDENT and press <Enter>. 
  156.  
  157.  
  158. ~Step~ TYPE VIDRAM ON and press <Enter>.
  159.  
  160. This allows the code that intercepts graphics requests to be in
  161. high RAM, while the memory management portion is in memory only
  162. briefly while it extends or returns memory. The resident portion
  163. of VIDRAM is quite small. You will want to use this feature only
  164. if your 'RAM CRAM' problem is extreme. 
  165.